// 角色类型
export interface Character {
  id: string;
  name: string;
  background: string;
  personality: string[];
  speakingStyle: string;
  knowledgeBase: string;
  avatar?: string;
  systemPrompt: string;
  isActive: boolean;
  createdAt: string;
  updatedAt: string;
}

// 对话类型
export interface Conversation {
  id: string;
  characterId: string;
  title?: string;
  isActive: boolean;
  createdAt: string;
  updatedAt: string;
}

// 消息类型
export interface Message {
  id: string;
  conversationId: string;
  role: 'user' | 'assistant';
  content: string;
  metadata?: Record<string, any>;
  createdAt: string;
}

// API响应类型
export interface ApiResponse<T = any> {
  success: boolean;
  data?: T;
  error?: string;
  message?: string;
}

// 角色生成请求
export interface GenerateCharacterRequest {
  background: string;
}

// 创建对话请求
export interface CreateConversationRequest {
  characterId: string;
  title?: string;
}

// 发送消息请求
export interface SendMessageRequest {
  content: string;
}

// 对话详情响应
export interface ConversationDetailResponse {
  conversation: Conversation;
  messages: Message[];
}

// 发送消息响应
export interface SendMessageResponse {
  userMessage: Message;
  assistantMessage: Message;
}
